package request

type Login struct {
	Mobile   string `form:"mobile" binding:"required"`   //todo: 手机号
	Password string `form:"password" binding:"required"` //todo: 密码
}

type ProductList struct {
	PriceMin    int64  `form:"priceMin" json:"priceMin" xml:"priceMin"`
	PriceMax    int64  `form:"priceMax" json:"priceMax" xml:"priceMax"`
	IsHot       int64  `form:"isHot" json:"isHot" xml:"isHot"`
	IsNew       int64  `form:"isNew" json:"isNew" xml:"isNew"`
	TopCategory int64  `form:"topCategory" json:"topCategory" xml:"topCategory"`
	Pages       int64  `form:"pages" json:"pages" xml:"pages" binding:"required"`
	PagePerNums int64  `form:"pagePerNums" json:"pagePerNums" xml:"pagePerNums" binding:"required"`
	Keyword     string `form:"keyword" json:"keyword" xml:"keyword"`
}

type List struct {
	IsHot     int64 `form:"isHot" json:"isHot" xml:"isHot"`
	IsPostage int64 `form:"isPostage" json:"isPostage" xml:"isPostage"`
	IsBest    int64 `form:"isBest" json:"isBest" xml:"isBest"`
}

type CollectVoucher struct {
	CouponsId int64 `form:"couponsId" json:"couponsId" xml:"couponsId" binding:"required"`
}

type OrderCreate struct {
	ProductsId int64 `form:"productsId" json:"productsId" xml:"productsId" binding:"required"`
	Num        int64 `form:"num" json:"num" xml:"num" binding:"required"`
	CouponsId  int64 `form:"couponsId" json:"couponsId" xml:"couponsId"`
}
